package com.edu.mapper.queryanswer;

import com.edu.entity.queryanswer.Query;
import com.edu.entity.queryanswer.Querypage;
import com.edu.entity.queryanswer.Querysc;
import com.edu.entity.user.EduUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;

@Component
public interface QueryMapper{
    List<Query> selectQuery(@Param("queryname") String queryname,@Param("page") Integer page,@Param("size") Integer size);
    void insertquery(Query query);
    List<Query> queryList(Querypage querypage);
    Query findById(Integer id);
    int gettotal(@Param("queryname") String queryname);
    int getselecttotal(@Param("queryname") String queryname);
    List<Query> pageList();
    List<Query> reslove(@Param("page") Integer page,@Param("size") Integer size);
    EduUser findUserByPrin(String username);
    void insertCollect(Querysc querysc);
    void broswerin(int id);
}
